package com.ruoyi.depot.service;

import java.util.List;
import com.ruoyi.depot.domain.OutboundOrder;

/**
 * 出库单Service接口
 * 
 * @author lxy
 * @date 2025-06-10
 */
public interface OutboundOrderService
{
    /**
     * 查询出库单
     * 
     * @param outboundId 出库单主键
     * @return 出库单
     */
    public OutboundOrder selectOutboundOrderByOutboundId(Long outboundId);

    /**
     * 查询出库单列表
     * 
     * @param outboundOrder 出库单
     * @return 出库单集合
     */
    public List<OutboundOrder> selectOutboundOrderList(OutboundOrder outboundOrder);

    /**
     * 新增出库单
     * 
     * @param outboundOrder 出库单
     * @return 结果
     */
    public int insertOutboundOrder(OutboundOrder outboundOrder);

    /**
     * 修改出库单
     * 
     * @param outboundOrder 出库单
     * @return 结果
     */
    public int updateOutboundOrder(OutboundOrder outboundOrder);

    /**
     * 批量删除出库单
     * 
     * @param outboundIds 需要删除的出库单主键集合
     * @return 结果
     */
    public int deleteOutboundOrderByOutboundIds(Long[] outboundIds);

    /**
     * 删除出库单信息
     * 
     * @param outboundId 出库单主键
     * @return 结果
     */
    public int deleteOutboundOrderByOutboundId(Long outboundId);

    /**
     * 确认出库
     * @param outboundId
     * @return
     */
    int handleConfirmOutbound(Long outboundId);


    /**
     * 获取未出库的出库单记录数
     */
    int getUnpairedOutBoundStats();
}
